package com.cloud.wms.ui.inside.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @Author:Chen
 * @Date: 2021-03-05 14:37
 * @Description:
 */
public class ReplenishBindEntity implements Parcelable {

    /**
     * BillCode : S7987965616565
     * BillID : 12343
     * ContainerCode : 895654
     * ContainerID : 898
     * CommodityList : [{"PosCode":"K01-0-01","PosID":12343,"CommodityID":7867887,"CommodityName":"测试商品","BarCode":"436546","CommodityCodeList":["436546"],"Amount":13,"NeedSortAmount":1,"StockType":1}]
     */

    private String billCode;
    private long billID;
    private String containerCode;
    private long containerID;

    public String getBillCode() {
        return billCode == null ? "" : billCode;
    }

    public void setBillCode(String billCode) {
        this.billCode = billCode;
    }

    public long getBillID() {
        return billID;
    }

    public void setBillID(long billID) {
        this.billID = billID;
    }

    public String getContainerCode() {
        return containerCode == null ? "" : containerCode;
    }

    public void setContainerCode(String containerCode) {
        this.containerCode = containerCode;
    }

    public long getContainerID() {
        return containerID;
    }

    public void setContainerID(long containerID) {
        this.containerID = containerID;
    }

    public ReplenishBindEntity() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.billCode);
        dest.writeLong(this.billID);
        dest.writeString(this.containerCode);
        dest.writeLong(this.containerID);
    }

    protected ReplenishBindEntity(Parcel in) {
        this.billCode = in.readString();
        this.billID = in.readLong();
        this.containerCode = in.readString();
        this.containerID = in.readLong();
    }

    public static final Creator<ReplenishBindEntity> CREATOR = new Creator<ReplenishBindEntity>() {
        @Override
        public ReplenishBindEntity createFromParcel(Parcel source) {
            return new ReplenishBindEntity(source);
        }

        @Override
        public ReplenishBindEntity[] newArray(int size) {
            return new ReplenishBindEntity[size];
        }
    };
}
